package com.cslg.yougou.front.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyw
 * @since 2020-11-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="GoodsType对象", description="")
public class GoodsType implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品类型主键")
    @TableId(value = "goods_type_id", type = IdType.AUTO)
    private Integer goodsTypeId;

    @ApiModelProperty(value = "商品父类型id 没有父类类型未-1")
    private Integer parentTypeId;

    @ApiModelProperty(value = "类型名称")
    private String typeName;

    @ApiModelProperty(value = "类型的序号，根据序号的排序优先展示")
    private Integer sort;

    @ApiModelProperty(value = "图标样式")
    private String iconClass;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除")
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
